<?php
$srv1="http://93.190.93.37";
$srv2="http://87.255.226.81:88";
ini_set('default_socket_timeout', '3');

$fp1 = fopen($srv1, "r");
$res1 = fread($fp1, 500);
fclose($fp1);

var_dump($res1);

$fp2 = fopen($srv2, "r");
$res2 = fread($fp2, 500);
fclose($fp2);

if (strlen($res1) > 0) { 
		echo $srv1;
	}
	else {
			if (strlen($res2) > 0) {
				echo $srv2;
				}
				else {
					echo '0';
					}
		}	
?>   